package com.dayou.bean;

import com.dayou.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 达幽系统集成框架 - 菜单表 dayou_sys_menu
 *
 * @author dayou
 * @date 2020-04-24
 */
public class SysMenu extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Integer id;
    /**
     * 菜单类别
     */
    private Integer type;
    /**
     * 菜单索引
     */
    private String index;
    /**
     * 菜单名称
     */
    private String name;
    /**
     * 菜单链接
     */
    private String url;
    /**
     * 菜单描述
     */
    private String desc;
    /**
     * 父级id
     */
    private Integer pid;
    /**
     * 菜单标识符
     */
    private String identify;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getIndex() {
        return index;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getPid() {
        return pid;
    }

    public String getIdentify() {
        return identify;
    }

    public void setIdentify(String identify) {
        this.identify = identify;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("type", getType())
                .append("index", getIndex())
                .append("name", getName())
                .append("url", getUrl())
                .append("desc", getDesc())
                .append("pid", getPid())
                .append("identify", getIdentify())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("isDeleted", getIsDeleted())
                .append("deleteBy", getDeleteBy())
                .append("deleteTime", getDeleteTime())
                .toString();
    }
}
